from flask import Flask, redirect

app = Flask(__name__)

@app.route("/baseurl")
def base():
    return "<h1>Python Flask</h1>"

@app.route("/baseurl/path1")
def path1():
    return redirect("/baseurl/path3")

@app.route("/baseurl/path2")
def path2():
    return "<h1>Python Flask Path2</h1>"

@app.route("/baseurl/path3")
def path3():
    return "<h1>Python Flask Path3</h1>"

if __name__ == "__main__":
    app.run("0.0.0.0", 8883)